<template>

  <div id="profile">
    <el-container>
      <el-aside width="200px">
        <table class="table_tr">
          <tr>
            <th>
              <router-link class="left" to="/profile/Info">个人中心</router-link>
            </th>
          </tr>
          <tr>
            <th>
              <router-link class="left" to="/profile/Pwd">修改密码</router-link>
            </th>
          </tr>
          <tr>
            <th>
              <router-link class="left" to="/profile/Favour">我的收藏</router-link>
            </th>
          </tr>
        </table>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script>
  import InfoProfile from './InfoProfile'
  import PasswordProfile from './PasswordProfile'
    export default {
      name: "MainProfile",
      components: {
        InfoProfile,
        PasswordProfile,
      }

    }
</script>

<style scoped>
  .table_tr tr{
    text-align: center;
  }
  .table_tr {
    width: 200px;
    text-align: center;
    padding: 20px;
  }

  .el-container {
    margin: 50px 250px;
  }

  .el-aside {
    background-color: #ffffff;
    color: #333;
    text-align: center;
    line-height: 30px;
    -webkit-box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
  }

  .el-main {
    -webkit-box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
    color: #ffffff;
    text-align: center;
    line-height: 160px;
    background-color: #fff;
  }
  /deep/ .el-main{
    padding: 0;
    margin: 0 15px;
  }

  body > .el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
  .left{
    text-decoration:none;
    color: #606266;
    font-weight:normal
  }
</style>
